package com.meirimoney.app.control;

import com.meirimoney.app.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class HeadControl extends BaseLinearLayout implements Navigation {

	public HeadControl(Context context, AttributeSet attrs) {
		super(context, attrs);
		View panel = ((LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(
				R.layout.mrm_head, this, true);
		this.title = (TextView) panel.findViewById(R.id.title);
	}

	public String getTitle() {
		return this.title.getText().toString();
	}

	public void setTitle(String title) {
		this.title.setText(title);
	}

	private TextView title;
}
